<extend name="common/base"/>
<block name="body">
    <table data-toggle="datagrid"
           data-options="{
        id:'id',
        checkAction:'backuptabe|立即备份,optimize|优化,repair|修复',
        width:'100%',
        height:'100%',
        showLinenumber:true,
        selectMult:true,
        showCheckboxcol:true,
    }"
                   >
                <thead>
                    <tr>
                        <th>名称</th>
                        <th>上级菜单</th>
                        <th>分组</th>
                        <th>URL</th>
                        <th>排序</th>
                        <th>仅开发者模式显示</th>
                        <th>隐藏</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
				<notempty name="list">
                <volist name="list" id="menu">
                    <tr>
                        <td>
                            <a href="{:url('index?pid='.$menu['id'])}" data-toggle="ajaxload" data-target="currenttab">{$menu.title}</a>
                        </td>
                        <td>{$menu.up_title|default='无'}</td>
                        <td>{$menu.group}</td>
                        <td>{$menu.url}</td>
                        <td>{$menu.sort}</td>
                        <td>
                            <a href="{:url('toogleDev',array('id'=>$menu['id'],'value'=>abs($menu['is_dev']-1)))}" data-toggle="ajaxload" data-target="currenttab">
                            {$menu.is_dev_text}
                            </a>
                        </td>
                        <td>
                            <a href="{:url('toogleHide',array('id'=>$menu['id'],'value'=>abs($menu['hide']-1)))}" data-toggle="ajaxload" data-target="currenttab">
                            {$menu.hide_text}
                            </a>
                        </td>
                        <td>
                            <a title="编辑" href="{:url('edit?id='.$menu['id'])}" data-toggle="ajaxload" data-target="currenttab">编辑</a>
                            <a class="confirm ajax-get" title="删除" href="{:url('del?id='.$menu['id'])}" data-toggle="ajaxload" data-target="currenttab">删除</a>
                        </td>
                    </tr>
                </volist>
				<else/>
				<td colspan="8" class="text-center"> aOh! 暂时还没有内容! </td>
				</notempty>
                </tbody>
            </table>
</block>
<block name="script">
    <script type="text/javascript">
    </script>
</block>